import { mock, Random } from "mockjs";
export const menus = mock([
    {
        icon: "desktop",
        id: 1,
        isShow: 1,
        keepAlive: 1,
        name: "控制台", 
        parentId: 0,
        perms: null,
        router: "/",
        type: 0,
        viewPath: null,
        create_at: () => Random.datetime(),
    },
    {
        icon: "dashboard",
        id: 2,
        isShow: 1,
        keepAlive: 1,
        name: "数据统计",
        parentId: 1,
        perms: null,
        router: "/dashboard/data",
        type: 1,
        viewPath: 'views/dashboard/index.vue',
        create_at: () => Random.datetime(),
    },
    {
        icon: "icon",
        id: 3,
        isShow: 1,
        keepAlive: 1,
        name: "图标",
        parentId: 0,
        perms: null,
        router: "/icon",
        type: 0,
        viewPath: null,
        create_at: () => Random.datetime(),
    },
    {
        icon: "",
        id: 4,
        isShow: 1,
        keepAlive: 1,
        name: "svg",
        parentId: 3,
        perms: null,
        router: "/icon/svg",
        type: 1,
        viewPath: 'views/icon/svg.vue',
        create_at: () => Random.datetime(),
    },
    {
        icon: "",
        id: 5,
        isShow: 1,
        keepAlive: 1,
        name: "element",
        parentId: 3,
        perms: null,
        router: "/icon/element",
        type: 1,
        viewPath: 'views/icon/element.vue',
        create_at: () => Random.datetime(),
    },
    {
        icon: "system",
        id: 6,
        isShow: 1,
        keepAlive: 1,
        name: "系统管理",
        parentId: 0,
        perms: null,
        router: "/system",
        type: 0,
        viewPath: null,
        create_at: () => Random.datetime(),
    },
    {
        icon: "safetycertificate",
        id: 7,
        isShow: 1,
        keepAlive: 1,
        name: "权限管理",
        parentId: 6,
        perms: null,
        router: "/system/user",
        type: 0,
        viewPath: null,
        create_at: () => Random.datetime(),
    },
    {
        icon: "user-fill",
        id: 8,
        isShow: 1,
        keepAlive: 1,
        name: "用户列表",
        parentId: 7,
        perms: null,
        router: "/system/user/auth/user",
        type: 1,
        viewPath: 'views/system/auth/user/index.vue',
        create_at: () => Random.datetime(),
    },
    {
        icon: "menu",
        id: 9,
        isShow: 1,
        keepAlive: 1,
        name: "菜单列表",
        parentId: 7,
        perms: null,
        router: "/system/user/auth/menu",
        type: 1,
        viewPath: 'views/system/auth/menu/index.vue',
        create_at: () => Random.datetime(),
    },
    {
        icon: "account",
        id: 10,
        isShow: 1,
        keepAlive: 1,
        name: "角色列表",
        parentId: 7,
        perms: null,
        router: "/system/user/auth/role",
        type: 1,
        viewPath: 'views/system/auth/role/index.vue',
        create_at: () => Random.datetime(),
    }
])